package com.whxy02.tolearn.app.beans;

//import javax.persistence.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户表
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user")
public class User implements Serializable {
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;
    private String name="张三";            //实名
    private String username;                //账户名
    private String pwd;
    private String email;
    private String phone="";
    private Integer role=1;
    private boolean sex=true;           //男
    private Date birthDate=new Date();
    private String grade="未知";         //当前就读年级（保留）
    private String schoolName="未知";
    private String className="未知";
    private String description="这个人什么都没留下";             //个人描述
    String userImage="images/userDefault.jpg";

}
